package com.dfy.dto;

import lombok.Data;
import javax.validation.constraints.Min;

@Data
public class PageRequest {
    @Min(value = 1, message = "页码不能小于1")
    private Integer current = 1;

    @Min(value = 1, message = "每页条数不能小于1")
    private Integer size = 10;

    private String sortField;
    private String sortOrder = "desc"; // asc或desc
} 